package com.mostsnails.common.base.exception;

import com.mostsnails.common.base.constant.ResultCodeEnum;

/**
 * 业务异常 --自定义异常
 *
 * @Author MostSnails
 * @Version 1.0
 */
public class BusinessException extends RuntimeException {

    public BusinessException(String message){
        super(message);
    }

    public BusinessException(ResultCodeEnum resultCodeEnum){
        super(resultCodeEnum.getName());
    }
}
